cmake_minimum_required(VERSION 3.1)
project(main)

find_package (Threads)
add_executable(main main.cpp)
target_link_libraries (main ${CMAKE_THREAD_LIBS_INIT})